package com.ks.member.controller;
import com.ks.core.base._ControllerBase;
import com.ks.core.core.Result;
import com.ks.member.aop.Author;
import com.ks.member.controller.dto.MemberInfoDto;
import com.ks.member.service.IMemberInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 用户详细信息 前端控制器
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-22
 */
@RestController
@RequestMapping("/memberInfo")
@Api(value = "微会员用户详细信息模块", description = "微会员用户详细信息模块")
public class MemberInfoController extends _ControllerBase {
    @Autowired
    private IMemberInfoService iMemberInfoService;
    @PostMapping("/getMemberInfoList")
    @ApiOperation(value = "微会员用户详细信息查询接口", notes = "微会员用户详细信息查询接口")
    @Author
    public Object getMemberInfoList() {
        MemberInfoDto memberInfoList = iMemberInfoService.getMemberInfoList(getContext());
        return Result.success(memberInfoList);
    }

}

